package com.ucex.common.rocketmq;


import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import lombok.Data;

@Configuration
@ConfigurationProperties(prefix = "rocketmq")
@Data
@Component
@ConditionalOnProperty(prefix = "rocketmq",name = "config",havingValue = "true")
public class MQProperties {

    private String accessKey;
    private String secretKey;
    private String nameSrvAddr;
    private String groupId;
}